<template>
  <div class="left_nav fs18">
    <a href="javascript:;" :class="leftIndex == 0 ? 'active' : ''" @click="changeLeft(0)"
      >基本信息</a
    >
    <a href="javascript:;" :class="leftIndex == 1 ? 'active' : ''" @click="changeLeft(1)"
      >证书抬头</a
    >
    <a href="javascript:;" :class="leftIndex == 2 ? 'active' : ''" @click="changeLeft(2)"
      >发票管理</a
    >
    <a href="javascript:;" :class="leftIndex == 3 ? 'active' : ''" @click="changeLeft(3)"
      >合同管理</a
    >
    <a href="javascript:;" :class="leftIndex == 4 ? 'active' : ''" @click="changeLeft(4)"
      >关于我们</a
    >
  </div>
</template>
<script>
export default {
  name: "leftnav",
  data() {
    return {
      leftIndex: 0,
    };
  },
  methods: {
    changeLeft(index) {
      this.leftIndex = index;
      this.$emit('getLeftIndex',index)
    },
  },
};
</script>
